// 用户
module.exports = app => {
  const mongoose = app.mongoose;
  const Schema = mongoose.Schema;

  const UserSchema = new Schema({
    username: {
      type: String
    },
    password: {
      type: String
    },
    email: {
      type: String
    },
    mobile: {
      type: String
    },
    country: {
      type: String
    },
    address: {
      type: String
    },
    createTime: {
      type: Date,
      default: Date.now
    },
    updateTime: {
      type: Date,
      default: Date.now
    }
  });
  return mongoose.model("User", UserSchema);
};
